<!DOCTYPE html>
{% load static %}
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>{{title}}</title>
  <link rel="stylesheet" href="{% static 'plugins/google-fonts/google.fonts.css' %}">
  <link rel="stylesheet" href="{% static 'plugins/fontawesome-free/css/all.min.css' %}">
  <link rel="stylesheet" href="{% static 'plugins/tempusdominus-bootstrap-4/css/tempusdominus-bootstrap-4.min.css' %}">
  <link rel="stylesheet" href="{% static 'plugins/icheck-bootstrap/icheck-bootstrap.min.css' %}">
  <link rel="stylesheet" href="{% static 'plugins/jqvmap/jqvmap.min.css' %}">
  <link rel="stylesheet" href="{% static 'dist/css/adminlte.min.css'%}">
  <link rel="stylesheet" href="{% static 'dist/css/common.css'%}">
  <link rel="stylesheet" href="{% static 'plugins/overlayScrollbars/css/OverlayScrollbars.min.css' %}">
  <link rel="stylesheet" href="{% static 'plugins/daterangepicker/daterangepicker.css' %}">
  <link rel="stylesheet" href="{% static 'plugins/summernote/summernote-bs4.min.css' %}">
  <script src="{% static 'plugins/jquery/jquery.min.js' %}"></script>
  <script src="{% static 'plugins/jquery-ui/jquery-ui.min.js' %}"></script>
<!-- {% block ext_css %}-->
<!-- {% endblock %}-->
</head>
<body class="hold-transition sidebar-mini layout-fixed">
<div class="wrapper">
<!--横向顶部装饰栏-->
  <nav class="main-header navbar navbar-expand navbar-white navbar-light">
    <ul class="navbar-nav">
      <li class="nav-item">
        <a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a>
      </li>
      <li class="nav-item d-none d-sm-inline-block">
        <a href="#" class="nav-link">首页</a>
      </li>
    </ul>
    <ul class="navbar-nav ml-auto">
      <li class="nav-item d-none d-sm-inline-block">
          <a href="#" class="nav-link">{{ username }}</a>
      </li>
      <li class="nav-item d-none d-sm-inline-block">
          <a href="../../basic/user_logout/" class="form-control">退出</a>
      </li>
      <li class="nav-item">
        <a class="nav-link" data-widget="fullscreen" href="#" role="button">
          <i class="fas fa-expand-arrows-alt"></i>
        </a>
      </li>
    </ul>
  </nav>
<!--侧面导航栏-->
  <aside class="main-sidebar sidebar-dark-primary elevation-4">
    <!-- 侧面导航栏 -->
    <div class="sidebar">
      <!-- 顶部标题部分 -->
      <a href="index3.html" class="brand-link">
          <img src="{% static 'img/logo_read_white.png'%}" alt="LMS Logo" class="brand-image img-circle elevation-3" style="opacity: .8">
          <span class="brand-text font-weight-light">图书与阅读管理</span>
      </a>
      <!-- 搜索框部分 -->
      <div class="form-inline">
        <div class="input-group" data-widget="sidebar-search">
          <input class="form-control form-control-sidebar" type="search" placeholder="Search" aria-label="Search">
          <div class="input-group-append">
            <button class="btn btn-sidebar">
              <i class="fas fa-search fa-fw"></i>
            </button>
          </div>
        </div>
      </div>
      <!-- 导航栏部分 -->
      <nav class="mt-2">
        <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
          <!--图书管理-->
          {% if perms.books.view_bookinfo %}
          <li class="nav-item">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-tachometer-alt"></i>
              <p>
                图书管理
                <i class="right fas fa-angle-left"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item">
                <a href="./index.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>图书信息总览</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>我的藏书总览</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>藏书数据分析</p>
                </a>
              </li>
            </ul>
          </li>
          {% endif %}
          <!--阅读管理-->
          {% if perms.basic.view_readrecord %}
          <li class="nav-item">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-chart-pie"></i>
              <p>
                阅读管理
                <i class="right fas fa-angle-left"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item">
                <a href="" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>我的阅读总览</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>我的阅读分析</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>当前阅读进度</p>
                </a>
              </li>
            </ul>
          </li>
          {% endif %}
          <!--用户管理-->
          <li class="nav-item">
            <a href="" class="nav-link">
              <i class="nav-icon fas fa-tree"></i>
              <p>
                用户管理
                <i class="fas fa-angle-left right"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              {% if perms.basic.check_myuser %}
              <li class="nav-item">
                <a href="{% url 'lms_user_info'%}" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>用户信息审核</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="{% url 'lms_user_group_assignment'%}" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>用户权限分配</p>
                </a>
              </li>
              {% endif %}
              <li class="nav-item">
                <a href="{% url 'lms_user_info_change'%}" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>我的信息</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="{% url 'lms_user_password_change'%}" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>修改密码</p>
                </a>
              </li>
              {% if perms.basic.check_myuser %}
              <li class="nav-item">
                <a href="{% url 'lms_user_reg' 0 %}" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>用户注册</p>
                </a>
              </li>
              {% endif %}
            </ul>
          </li>
          <!--用户组管理-->
          {% if perms.auth.view_group %}
          <li class="nav-item">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-tree"></i>
              <p>
                用户组管理
                <i class="fas fa-angle-left right"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item">
                <a href="{% url 'lms_user_group' %}" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>用户组管理</p>
                </a>
              </li>
              {% if perms.auth.view_permission %}
              <li class="nav-item">
                <a href="{% url 'lms_group_permissions' %}"class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>用户组权限</p>
                </a>
              </li>
              {% endif %}
            </ul>
          </li>
          {% endif %}
        </ul>
      </nav>
      <!-- /.sidebar-menu -->
    </div>
    <!-- /.侧面导航栏 -->
  </aside>
<!--主页上方，多页面横向导航栏-->
  <div class="content-wrapper iframe-mode" data-widget="iframe" data-loading-screen="750" style="height: 572.349px;">
    <div class="nav navbar navbar-expand navbar-white navbar-light border-bottom p-0">
      <div class="nav-item dropdown">
        <a class="nav-link bg-danger dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Close</a>
        <div class="dropdown-menu mt-0" style="left: 0px; right: inherit;">
          <a class="dropdown-item" href="#" data-widget="iframe-close" data-type="all">Close All</a>
          <a class="dropdown-item" href="#" data-widget="iframe-close" data-type="all-other">Close All Other</a>
        </div>
      </div>
      <a class="nav-link bg-light" href="#" data-widget="iframe-scrollleft"><i class="fas fa-angle-double-left"></i></a>
      <ul class="navbar-nav overflow-hidden" role="tablist"></ul>
      <a class="nav-link bg-light" href="#" data-widget="iframe-scrollright"><i class="fas fa-angle-double-right"></i></a>
      <a class="nav-link bg-light" href="#" data-widget="iframe-fullscreen"><i class="fas fa-expand"></i></a>
    </div>
    <div class="tab-content">
      <div class="tab-empty" style="height: 531.678px;">
          <h2 class="display-4">欢迎使用</h2>
      </div>
<!--      <div class="tab-loading">-->
<!--          <div>-->
<!--              <h2 class="display-4">页面加载中...<i class="fa fa-sync fa-spin"></i></h2>-->
<!--          </div>-->
<!--      </div>-->
    </div>
  </div>
<!-- /.content-wrapper -->

<script src="{% static 'plugins/bootstrap/js/bootstrap.bundle.min.js' %}"></script>
<script src="{% static 'plugins/chart.js/Chart.min.js' %}"></script>
<script src="{% static 'plugins/sparklines/sparkline.js' %}"></script>
<script src="{% static 'plugins/jqvmap/jquery.vmap.min.js' %}"></script>
<script src="{% static 'plugins/jqvmap/maps/jquery.vmap.usa.js' %}"></script>
<script src="{% static 'plugins/jquery-knob/jquery.knob.min.js' %}"></script>
<script src="{% static 'plugins/moment/moment.min.js' %}"></script>
<script src="{% static 'plugins/daterangepicker/daterangepicker.js' %}"></script>
<script src="{% static 'plugins/tempusdominus-bootstrap-4/js/tempusdominus-bootstrap-4.min.js' %}"></script>
<script src="{% static 'plugins/summernote/summernote-bs4.min.js' %}"></script>
<script src="{% static 'plugins/overlayScrollbars/js/jquery.overlayScrollbars.min.js' %}"></script>
<script src="{% static 'dist/js/adminlte.js' %}"></script>
<script src="{% static 'dist/js/pages/dashboard.js' %}"></script>
<!--{% block ext_js %}-->
<!--{% endblock%}-->
</body>
</html>